<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use  App\Services\TestService;

class TestServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
   protected $defer = true;

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
       

        $this->app->singleton('test', function(){
            return new TestService();
        });
    }

   

    public function provides()
    {
        return ['test'];
    }
}
